package com.chinasofti.zbestadmin.service.impl;

import com.chinasofti.zbestadmin.dao.model.Category;
import com.chinasofti.zbestadmin.dao.CategoryMapper;
import com.chinasofti.zbestadmin.service.ICategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chinasofti.zbestadmin.web.form.CategoryForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 分类表 服务实现类
 * </p>
 *
 * @author zbestadmin
 * @since 2019-05-29
 */
@Service
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements ICategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> querySeacondLevel(CategoryForm categoryForm) {

        List<Category> seacondLevel = categoryMapper.querySeacondLevel(categoryForm);
        return seacondLevel;
    }
}
